<template>
  <div>
    <h4 style="margin-left: 70px; margin-top: 40px; margin-bottom: -15px">pos+导购素材</h4>
    <div style="margin-left: 67px">
      <a-divider dashed />
      <div style="margin-left: -47px">
        <a-form-model ref="ruleForm" :label-col="labelCol" :wrapper-col="wrapperCol" :model="form">
          <a-form-model-item label="*  标题">
            {{ form.name }}
          </a-form-model-item>
          <a-form-model-item label="*  介绍" prop="matchAbout">
            {{ form.matchAbout }}
          </a-form-model-item>
        </a-form-model>
      </div>
    </div>

    <slot name="formItem" :form="form" :labelCol="labelCol" :wrapperCol="wrapperCol"></slot>
    <slot name="formFooter" :form="form"></slot>
  </div>
</template>
<script>
import { mixin } from '../mixin'
export default {
  mixins: [mixin],
  data() {
    return {
      form: {
        name: '',
        matchAbout: ''
      },
      matchId: '',
      lookId: ''
    }
  },
  created() {},
  methods: {
    setData(value) {
      console.log(value, 'pos+导购素材')
      if (value) {
        this.form.name = value.name
        this.form.matchAbout = value.briefIntroduction
      }
    }
  }
}
</script>

